package cn.hd.authorService.controller.log;


import cn.hd.authorService.service.log.SystemLogService;
import cn.hd.commonService.entity.SystemLog;
import cn.hd.commonService.vo.Query;
import cn.hd.commonService.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "日志操作接口")
@RequestMapping("/systemLog")
public class SystemLogController {

    @Autowired
    private SystemLogService systemLogService;

    @PostMapping("/getListByPage")
    @ApiOperation(value = "获取日志分页数据")
    public Result<SystemLog> getListByPage(Query query){
        IPage<SystemLog> list = systemLogService.getListByPage(query);
        return Result.success("获取成功",list);
    }
}
